using System.Configuration;
using Configuration = IDeal.Models.Configuration;

namespace IDeal.Services
{
    public class ConfigurationAccessor : IConfigurationAccessor
    {
        public Configuration GetConfiguration()
        {
            return new Configuration
            {
                ApiUrl            = ConfigurationManager.AppSettings["IDeal.ApiUrl"],
                MerchantId        = ConfigurationManager.AppSettings["IDeal.MerchantId"],
                SubId             = ConfigurationManager.AppSettings["IDeal.SubId"],
                MerchantReturnUrl = ConfigurationManager.AppSettings["IDeal.MerchantReturnUrl"],
            };
        }
    }
}